<?phpnamespace app\hook;class goods{    public static function autoshow($params = [])    {        $goods = \goodsModel::find($params['goods_id']);        $now   = time();        if($goods->autoshow==1) {            if($goods->autoshow_start>0){               // 自动上架               \Queue::later($goods->autoshow_start - $now, '\app\job\Goods@autoshow', ['goods_id' => $params['goods_id']], 'shop');            }            if($goods->autoshow_end>0){               // 自动下架               \Queue::later($goods->autoshow_end - $now, '\app\job\Goods@autohide', ['goods_id' => $params['goods_id']], 'shop');            }        }        \Log::out('hook:goods auto show. params:' . json_encode($params), 'hook');    }}